<script setup>
import login from './components/login.vue';
import zhuce from './components/zhuce.vue';
import {ref} from 'vue'
const isshow = ref(true)
const isChange = (num) => {
    if(num==2){
        isshow.value = false
    }
    if(num==1){
        isshow.value = true
    }
    
}
</script>

<template>
 <button @click="isChange(1)">登录</button>
 <button @click="isChange(2)">注册</button>
 <login v-if="isshow"></login>
 <zhuce v-else></zhuce>
</template>

<style scoped>
</style>
